feat: support triedb as the state storage backend (#53)#149
Merged
Conversation
* feat: add statedb(triedb or mdbx) info to reth.toml * feat: init triedb during save statedb toml * feat: support init genesis by triedb * feat: support stage sync and live sync under triedb * chore: adjust memory_block_buffer_target param under triedb * feat: forbid some rpc by touch trie node * feat: support triedb remove reth common dependency * feat: add insert mgasps metrics * feat: support triedb io-uring feature * deps: change triedb version
- Fix compilation: add StorageArgs field to NodeConfig and NodeCommand, export StorageArgs from args module, restore with_storage and storage_settings methods on NodeConfig - Fix clippy: backtick TrieDB in doc comments, swap if-not-else branches, use if-let instead of is_some+unwrap, remove useless .into() conversions, remove redundant clones and let bindings, use bool::then, make const fn, remove unnecessary to_string on to_string_lossy - Fix CI workflows: add liburing-dev to clippy/docs/udeps/doctest jobs - Fix feature propagation: propagate asm-keccak to reth-provider and alloy-primitives, jemalloc to rocksdb, test-utils to reth-trie-common - Fix wasm: add triedb-affected crates to wasm exclude list - Fix deny: add reth-bsc-triedb git repo to allow-git - Fix deps: add reth-tasks dev-dep to reth-db-common, make triedb deps optional behind std feature in reth-trie-common - Regenerate CLI docs for new --statedb.triedb flag Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3239bbf to
d47efc4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of
3e7b7666efromorigin/develop.Includes
3e7b7666e— feat: support triedb as the state storage backend (#53)Adds
StateDbArgsandstatedbfield throughout the node config, CLI commands, RPC helpers, stages, and trie storage to support triedb as an alternative state storage backend alongside the existing mdbx backend.Next commit to port:
8e06e31a6— fix: get triedb without check active (#55)